﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:local="clr-namespace:CurveMenu"
    xmlns:CurveMenuPanel="clr-namespace:CurveMenuPanel;assembly=CurveMenuPanel" 
	x:Class="CurveMenu.Page"
	d:DesignWidth="640" d:DesignHeight="480">

	<Grid x:Name="LayoutRoot">
		<Image Source="Silverlight Powered by V R.png" Stretch="Fill" Height="136" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="197"/>
		<CurveMenuPanel:CurveMenuPanel x:Name="mainPage" Curvature="20" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,100,300"/>
		<StackPanel Margin="20,0,20,22" VerticalAlignment="Bottom">
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Text="{Binding CurrItemData.title, ElementName=mainPage, Mode=TwoWay, UpdateSourceTrigger=Default}" TextWrapping="Wrap" Width="80" TextAlignment="Right" Margin="0,0,2,0"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Text="Curvature" TextWrapping="Wrap" Width="80" TextAlignment="Right" Margin="0,0,2,0"/>
				<Slider VerticalAlignment="Top" Minimum="-100" Maximum="100" SmallChange="1" Value="{Binding Curvature, ElementName=mainPage, Mode=TwoWay}" HorizontalAlignment="Left" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Text="Position" TextWrapping="Wrap" Width="80" TextAlignment="Right" Margin="0,0,2,0"/>
				<Slider VerticalAlignment="Top" Maximum="15" SmallChange="1" Value="{Binding CurrentPosition, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Margin="0,0,2,0" Width="80" Text="ItemDistance" TextAlignment="Right" TextWrapping="Wrap"/>
				<Slider VerticalAlignment="Top" Maximum="300" SmallChange="1" Value="{Binding ItemDistance, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Margin="0,0,2,0" Width="80" Text="MIDistance" TextAlignment="Right" TextWrapping="Wrap"/>
				<Slider VerticalAlignment="Top" Maximum="300" SmallChange="1" Value="{Binding MiddleItemDistance, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Margin="0,0,2,0" Width="80" Text="MIScale" TextAlignment="Right" TextWrapping="Wrap"/>
				<Slider VerticalAlignment="Top" Maximum="5" SmallChange="0.1" Value="{Binding MiddleItemScale, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Margin="0,0,2,0" Width="80" Text="IScaleRatio" TextAlignment="Right" TextWrapping="Wrap"/>
				<Slider VerticalAlignment="Top" Maximum="5" SmallChange="0.1" Value="{Binding ItemScaleRatio, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Margin="0,0,2,0" Width="80" Text="ItemAlpha" TextAlignment="Right" TextWrapping="Wrap"/>
				<Slider VerticalAlignment="Top" Maximum="1" SmallChange="0.01" Value="{Binding ItemAlpha, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Margin="0,0,2,0" Width="80" Text="ItemWidth" TextAlignment="Right" TextWrapping="Wrap"/>
				<Slider VerticalAlignment="Top" Maximum="200" SmallChange="1" Value="{Binding ItemWidth, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
            <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                <TextBlock Margin="0,0,2,0" Width="80" Text="ItemRoationY" TextAlignment="Right" TextWrapping="Wrap"/>
                <Slider VerticalAlignment="Top" Maximum="60" SmallChange="1" Value="{Binding RoationY, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
            </StackPanel>
            <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<TextBlock Margin="0,0,2,0" Width="80" Text="CapDistance" TextAlignment="Right" TextWrapping="Wrap"/>
				<Slider VerticalAlignment="Top" Maximum="50" SmallChange="1" Value="{Binding CaptionDistance, ElementName=mainPage, Mode=TwoWay}" Width="150"/>
			</StackPanel>
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Width="232">
				<CheckBox Content="CaptionEnabled" HorizontalAlignment="Right" IsChecked="{Binding CaptionEnabled, ElementName=mainPage, Mode=TwoWay}"/>
				<CheckBox Content="InfiniteScrollEnabled" HorizontalAlignment="Right" IsChecked="{Binding InfiniteScrollEnabled, ElementName=mainPage, Mode=TwoWay}"/>
			</StackPanel>
		</StackPanel>
		<Button HorizontalAlignment="Center" VerticalAlignment="Center" Content="CreateCurveMenu" Click="Button_Click" Margin="0"/>
		<TextBlock VerticalAlignment="Bottom" Text="http://nasa.cnblogs.com" TextWrapping="Wrap" Margin="10,0,0,8" Height="14" HorizontalAlignment="Left" Foreground="#FF0043FF" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"/>
	</Grid>
</UserControl>